package com.intellij.licensecommon.util;

import java.util.Calendar;
import java.util.Date;
import java.util.GregorianCalendar;
import java.util.TimeZone;

public class DateUtil2 {
    public static final int a = 0;
    public static final int b = 1;
    public static final int c = 2;
    public static final int d = 3;
    public static final int e = 4;
    public static final int f = 5;
    public static final int g = 6;
    public static final int h = 7;
    public static final int i = 8;
    public static final int j = 9;
    public static final int k = 10;
    public static final int l = 11;
    public static final String m = "Europe/Prague";

    public static Date a(int paramInt1, int paramInt2, int paramInt3) {
        return a(paramInt1, paramInt2, paramInt3, Calendar.getInstance(TimeZone.getTimeZone("Europe/Prague")));
    }

    public static long a(double paramDouble) {
        return (paramDouble * 1000.0D);
    }

    public static long b(double paramDouble) {
        return (paramDouble * 60.0D * 1000.0D);
    }

    public static long c(double paramDouble) {
        return (paramDouble * 60.0D * 60.0D * 1000.0D);
    }

    public static long d(double paramDouble) {
        return (paramDouble * 24.0D * 60.0D * 60.0D * 1000.0D);
    }

    public static Date a(Date paramDate, long paramLong) {
        return new Date(paramDate.getTime() + paramLong);
    }

    public static Date b(Date paramDate, long paramLong) {
        return new Date(paramDate.getTime() - paramLong);
    }

    public static Date a(long paramLong) {
        return new Date(System.currentTimeMillis() + paramLong);
    }

    public static Date b(long paramLong) {
        return new Date(System.currentTimeMillis() - paramLong);
    }

    public static Date a(int paramInt1, int paramInt2, int paramInt3, Calendar paramCalendar) {
        paramCalendar.clear();
        paramCalendar.set(paramInt1, paramInt2, paramInt3);
        return paramCalendar.getTime();
    }

    public static Date a() {
        return new Date();
    }

    public static Date a(Date paramDate) {
        return a(paramDate, 1L);
    }

    public static Date b(Date paramDate) {
        return b(paramDate, 1L);
    }

    public static Date a(int paramInt1, int paramInt2, int paramInt3, int paramInt4, int paramInt5, int paramInt6, String paramString) {
        GregorianCalendar localGregorianCalendar = new GregorianCalendar();
        localGregorianCalendar.setTimeZone(TimeZone.getTimeZone(paramString));
        localGregorianCalendar.set(paramInt1, paramInt2, paramInt3, paramInt4, paramInt5, paramInt6);
        return localGregorianCalendar.getTime();
    }

    public static boolean a(Date paramDate1, Date paramDate2, long paramLong) {
        long l1 = paramDate1.getTime();
        long l2 = paramDate2.getTime();
        return l1 < l2 - paramLong;
    }

    public static Date c(Date paramDate) {
        return a(paramDate, d(1.0D));
    }

    public static Date d(Date paramDate) {
        return b(paramDate, d(1.0D));
    }
}
